<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>

	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
		<title>CRM Data Detective</title>
	
		<!--<link rel="stylesheet" href="https://ceiprod.crm.dynamics.com/_common/styles/global.css.aspx" type="text/css" />-->
		<link rel="stylesheet" href="detective.css" type="text/css" />
		
		<!--
		<link rel="stylesheet" href="smoothness/jquery-ui-1.8.23.custom.css" type="text/css" />
		<script type="text/javascript" src="jquery.js"></script>
		<script type="text/javascript" src="jquery-ui-1.8.23.custom.min.js"></script>
		-->

		<!-- CDN Microsoft -->
		<link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.23/themes/start/jquery-ui.css" type="text/css" />
		<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.min.js"></script>
		<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.23/jquery-ui.min.js"></script>

		<!-- Context -->
		<script type="text/javascript" src="../../ClientGlobalContext.js.aspx"></script>

		<!-- Gantt JavaScript -->
		<script type="text/javascript" src="jcl.js"></script>
		<script type="text/javascript" src="detective.js"></script>

	</head>

	<body>
		<span class="appTitle">CRM Data Detective</span>
		<span class="version">v 1.0.3</span>
		<div class="hdrDivider"></div>

		<div id="entityContainer">
			<table class="entityHeader">
				<tr>
					<th class="enitySmallIcon">&nbsp;</th>
					<th class="displayName">Display Name</th>
					<th class="logicalName">Logical Name</th>
				</tr>
			</table>
			<div id="entityList">
				<!-- Insert Tasks -->
				<table class="entityTableData">
					<tr guid="x">
						<td colspan="3" style="width: 330px;text-align: center;padding-top: 40px;"><img src="loading.gif" height="235" width="235"</td>
					</tr>
				</table>
			</div>
			<div class="entityFooter">
				<span class="footerText">Filter:</span>
				<input type="text" id="entityFilter" />

				<span class="entityCount">Loading...</span>
			</div>			
		</div>

		<div id="entityDetail">
			<table id="entityHeader">
				<tbody>
					<tr>
						<td rowspan="2" class="largeIcon" style="padding-top: 6px;width: 32px;">ICON</td>
						<td style="padding-left:4px;">
							<div class="entityName">Account</div>
							<span class="logicalName">Logical Name</span>
						</td>
					</tr>
					
				</tbody>
			</table>

			<div id="attributeContainer">
				<table class="attributeHeader">
					<tr>
						<th class="displayName">Display Name</th>
						<th class="logicalName">Logical Name</th>
						<th class="population">Population</th>
						<th class="propertyType">Type</th>
						<th class="customizable">Customizable</th>
						<th class="searchable">Searchable</th>
						<th>&nbsp;</th>
					</tr>
				</table>
				<div id="attributeList">
					<table class="attributeTableData">

					</table>
				</div>
				<div class="attributeFooter">
					<span style="float:right;padding:4px;">
						<span class="recordCount">x Records</span> | <span class="attributeCount">x Attributes</span>
					</span>
				</div>						
			</div>
		</div>

		<div id="landing">
			<img src="landing.jpg" height="481" width="824" />
		</div>

		<div id="aggregateDialog" title="Error: Aggregate Query Limit Exceeded" style="display:none;">
			<p>Within Fetch Queries, there is a limit of the number of records allowed to be within an aggregate query.  <br/><br/>The default is 50,000 and unfortunately the entity you have selected contains more than the present limit.  Look here for <a href="http://paul-way.com/crm-2013-aggregate-query-record-limit-exceeded/" target="_blank">instructions on changing the limit</a>.<br/><br>For now, we are querying this entity as if only 50k records existed.</p>
		</div>
	</body>

</html>